#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class Web_Module : Business.BusinessBase<Web_Module, int>
	{
		#region Fields and Properties

		private int module_IsParent = 0;
		/// <summary>
		/// 
		/// </summary>
		public int Module_IsParent
		{
			get { return module_IsParent; }
			set
			{
				if (value != module_IsParent)
				{
					MarkChanged("Module_IsParent");
					module_IsParent = value;
				}
			}
		}

		private String module_Name = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Module_Name
		{
			get { return module_Name; }
			set
			{
				if (value != module_Name)
				{
					MarkChanged("Module_Name");
					module_Name = value;
				}
			}
		}

		private String module_Code = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Module_Code
		{
			get { return module_Code; }
			set
			{
				if (value != module_Code)
				{
					MarkChanged("Module_Code");
					module_Code = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public Web_Module()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override Web_Module DataSelect(int id)
		{
			return Services.DALService.Web_ModuleService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.Web_ModuleService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.Web_ModuleService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.Web_ModuleService.Delete(this);
		}

		#endregion Base overrides
	}
}
